﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Drawing="clr-namespace:GraphLight.Drawing" xmlns:Controls="clr-namespace:GraphLight.Controls">

    <!-- Palette -->
    <ControlTemplate x:Key="paletteTemplate" TargetType="Drawing:Palette">
        <Grid Background="AliceBlue" x:Name="LayoutRoot" Height="{Binding Graph.Height}"
                Width="{Binding Graph.Width}">
            <Canvas x:Name="graphCanvas" Background="Transparent" />
        </Grid>
    </ControlTemplate>
    
    <Style x:Key="paletteVertexStyle" TargetType="Drawing:Node">
        <Setter Property="Margin" Value="3" />
        <Setter Property="Controls:DragDropManager.AllowDrag" Value="True" />
        <Setter Property="Controls:DragDropManager.Mode" Value="DragCopy"/>
    </Style>

    <Style TargetType="Drawing:Palette">
        <Setter Property="Template" Value="{StaticResource paletteTemplate}" />
        <Setter Property="VertexStyle" Value="{StaticResource paletteVertexStyle}"/>
    </Style>

</ResourceDictionary>